
		

-- D:\GOA\reslibrary\templete\res\modal\modalmgr.xsl 58
gr_module("gm_xinbanchunzhongyun")


mcgffinanceordergroupmgr = inherit(GmSql.list,GmBase.CallBack):name("mcgffinanceordergroupmgr")



mcgffinanceordergroupmgr.init = function (self,pagecount)

	local top = self
	
	
	GmSql.list.init(self,gInfo["path"]..'/'..g_local_db_name,'czy_financeordergroup')
	GmBase.CallBack.init(self)
	
	self.baseurl = ''

	self.idPair = {}
	self.idPair['prev'] = '0'
	self.idPair['next'] = '0'
	
	self.pageCount = pagecount or 10
	self.totalPage = 0
	
	self:reset_maxminid('czy_financeordergroup','id')
	
	
	self.action = {}
	self.op  = {}
	
	
	
	-----------------------------
	self.action['cgffinanceordergroupitem'] = {} 	
	-------
	self.op['cgffinanceordergroupitem'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgffinanceordergroupitem()
		for a,b in pairs(top.action['cgffinanceordergroupitem']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgffinanceordergroupitem(newpostparam)
		
	end	
		
  self.action['cgffinanceordergroupitem']['id'] = { ['title'] = '±àºÅ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupitem']['customer_id'] = { ['title'] = 'é‚£å®¶å®¢æˆ·çš?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupitem']['brand_id'] = { ['title'] = 'å“ç‰Œ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupitem']['group_code'] = { ['title'] = 'å¤šä¸ªè®¢å•å¯ä»¥ç¼–è¾‘è®¢å•å¥?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergroupitem']['plan_code'] = { ['title'] = 'æŽ’å•ç¼–å·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergroupitem']['product_batch'] = { ['title'] = 'ç”Ÿäº§æ‰¹æ¬¡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupitem']['money_sum'] = { ['title'] = 'money_sum' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupitem']['rebates_money'] = { ['title'] = 'è¿”ç‚¹é‡‘é¢=æ€»é‡‘é¢?*è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupitem']['rebates_ratio'] = { ['title'] = 'è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupitem']['discount'] = { ['title'] = 'æŠ˜æ‰£' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['other_money'] = { ['title'] = 'å…¶ä»–è´¹ç”¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupitem']['money_pay'] = { ['title'] = 'åº”ä»˜é‡‘é¢=(æ€»é‡‘é¢?-è¿”ç‚¹é‡‘é¢)*æŠ˜æ‰£+å…¶ä»–é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupitem']['money_get'] = { ['title'] = 'å·²ä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-æœªä»˜é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupitem']['money_left'] = { ['title'] = 'æœªä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-å·²ä»˜é‡‘é¢-åŽ»é›¶å¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupitem']['pay_percent'] = { ['title'] = 'ä»˜æ¬¾æ¯”ä¾‹=å·²ä»˜é™¤ä»¥ï¼ˆåº”ä»?-åŽ»é›¶å¤´ï¼‰' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['area'] = { ['title'] = 'é¢ç§¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['count'] = { ['title'] = 'æ•°é‡' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupitem']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['buyer'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupitem']['buyer_phone'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·ç”µè¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupitem']['buyer_address'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·åœ°å€' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergroupitem']['buyer_make'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·å¤–åŒ…è£…æ ‡ç¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergroupitem']['create_time'] = { ['title'] = 'ç”Ÿæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['project_addr'] = { ['title'] = 'project_addr' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '128' }	
  self.action['cgffinanceordergroupitem']['other_money_name'] = { ['title'] = 'å…¶ä»–è´¹ç”¨åç§°' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupitem']['other_money_note'] = { ['title'] = 'å…¶ä»–è´¹ç”¨å¤‡æ³¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['preferential'] = { ['title'] = 'preferential' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupitem']['balance_money'] = { ['title'] = 'ç»“ç®—é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupitem']['flag'] = { ['title'] = 'flag' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgffinanceordergroupitem']['status'] = { ['title'] = 'ä»˜æ¬¾çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergroupitem']['pay_time'] = { ['title'] = 'é¦–æ¬¡ä»˜æ¬¾æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['order_status'] = { ['title'] = 'ç»„è®¢å•çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupitem']['custime'] = { ['title'] = 'å®¢æœå—ç†æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['fintime'] = { ['title'] = 'è´¢åŠ¡å®¡æ ¸æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['start_time'] = { ['title'] = 'å®‰æŽ’ç”Ÿäº§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['duedong_time'] = { ['title'] = 'é¢„è®¡å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['due_date'] = { ['title'] = 'é¢„è®¡äº¤è´§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['finish_time'] = { ['title'] = 'å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['delivery_time'] = { ['title'] = 'å‡ºåº“æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupitem']['is_reminders'] = { ['title'] = 'æ˜¯å¦å·²å‚¬æ¬?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupitem']['agent'] = { ['title'] = 'ä»£ç†å•?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '50' }	
  self.action['cgffinanceordergroupitem']['delivery'] = { ['title'] = 'ç‰©æµä¿¡æ¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }
  self.action['cgffinanceordergroupitem']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgffinanceordergroupmodify'] = {} 	
	-------
	self.op['cgffinanceordergroupmodify'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgffinanceordergroupmodify()
		for a,b in pairs(top.action['cgffinanceordergroupmodify']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgffinanceordergroupmodify(newpostparam)
		
	end	
		
  self.action['cgffinanceordergroupmodify']['id'] = { ['title'] = '±àºÅ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupmodify']['customer_id'] = { ['title'] = 'é‚£å®¶å®¢æˆ·çš?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupmodify']['brand_id'] = { ['title'] = 'å“ç‰Œ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupmodify']['group_code'] = { ['title'] = 'å¤šä¸ªè®¢å•å¯ä»¥ç¼–è¾‘è®¢å•å¥?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergroupmodify']['plan_code'] = { ['title'] = 'æŽ’å•ç¼–å·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergroupmodify']['product_batch'] = { ['title'] = 'ç”Ÿäº§æ‰¹æ¬¡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupmodify']['money_sum'] = { ['title'] = 'money_sum' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupmodify']['rebates_money'] = { ['title'] = 'è¿”ç‚¹é‡‘é¢=æ€»é‡‘é¢?*è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupmodify']['rebates_ratio'] = { ['title'] = 'è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupmodify']['discount'] = { ['title'] = 'æŠ˜æ‰£' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['other_money'] = { ['title'] = 'å…¶ä»–è´¹ç”¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupmodify']['money_pay'] = { ['title'] = 'åº”ä»˜é‡‘é¢=(æ€»é‡‘é¢?-è¿”ç‚¹é‡‘é¢)*æŠ˜æ‰£+å…¶ä»–é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupmodify']['money_get'] = { ['title'] = 'å·²ä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-æœªä»˜é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupmodify']['money_left'] = { ['title'] = 'æœªä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-å·²ä»˜é‡‘é¢-åŽ»é›¶å¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupmodify']['pay_percent'] = { ['title'] = 'ä»˜æ¬¾æ¯”ä¾‹=å·²ä»˜é™¤ä»¥ï¼ˆåº”ä»?-åŽ»é›¶å¤´ï¼‰' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['area'] = { ['title'] = 'é¢ç§¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['count'] = { ['title'] = 'æ•°é‡' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupmodify']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['buyer'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupmodify']['buyer_phone'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·ç”µè¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupmodify']['buyer_address'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·åœ°å€' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergroupmodify']['buyer_make'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·å¤–åŒ…è£…æ ‡ç¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergroupmodify']['create_time'] = { ['title'] = 'ç”Ÿæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['project_addr'] = { ['title'] = 'project_addr' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '128' }	
  self.action['cgffinanceordergroupmodify']['other_money_name'] = { ['title'] = 'å…¶ä»–è´¹ç”¨åç§°' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupmodify']['other_money_note'] = { ['title'] = 'å…¶ä»–è´¹ç”¨å¤‡æ³¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['preferential'] = { ['title'] = 'preferential' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupmodify']['balance_money'] = { ['title'] = 'ç»“ç®—é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupmodify']['flag'] = { ['title'] = 'flag' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgffinanceordergroupmodify']['status'] = { ['title'] = 'ä»˜æ¬¾çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergroupmodify']['pay_time'] = { ['title'] = 'é¦–æ¬¡ä»˜æ¬¾æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['order_status'] = { ['title'] = 'ç»„è®¢å•çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupmodify']['custime'] = { ['title'] = 'å®¢æœå—ç†æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['fintime'] = { ['title'] = 'è´¢åŠ¡å®¡æ ¸æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['start_time'] = { ['title'] = 'å®‰æŽ’ç”Ÿäº§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['duedong_time'] = { ['title'] = 'é¢„è®¡å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['due_date'] = { ['title'] = 'é¢„è®¡äº¤è´§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['finish_time'] = { ['title'] = 'å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['delivery_time'] = { ['title'] = 'å‡ºåº“æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupmodify']['is_reminders'] = { ['title'] = 'æ˜¯å¦å·²å‚¬æ¬?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupmodify']['agent'] = { ['title'] = 'ä»£ç†å•?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '50' }	
  self.action['cgffinanceordergroupmodify']['delivery'] = { ['title'] = 'ç‰©æµä¿¡æ¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }
  self.action['cgffinanceordergroupmodify']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgffinanceordergrouppost'] = {} 	
	-------
	self.op['cgffinanceordergrouppost'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgffinanceordergrouppost()
		for a,b in pairs(top.action['cgffinanceordergrouppost']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgffinanceordergrouppost(newpostparam)
		
	end	
		
  self.action['cgffinanceordergrouppost']['id'] = { ['title'] = '±àºÅ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouppost']['customer_id'] = { ['title'] = 'é‚£å®¶å®¢æˆ·çš?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouppost']['brand_id'] = { ['title'] = 'å“ç‰Œ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouppost']['group_code'] = { ['title'] = 'å¤šä¸ªè®¢å•å¯ä»¥ç¼–è¾‘è®¢å•å¥?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergrouppost']['plan_code'] = { ['title'] = 'æŽ’å•ç¼–å·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergrouppost']['product_batch'] = { ['title'] = 'ç”Ÿäº§æ‰¹æ¬¡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouppost']['money_sum'] = { ['title'] = 'money_sum' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouppost']['rebates_money'] = { ['title'] = 'è¿”ç‚¹é‡‘é¢=æ€»é‡‘é¢?*è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouppost']['rebates_ratio'] = { ['title'] = 'è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouppost']['discount'] = { ['title'] = 'æŠ˜æ‰£' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['other_money'] = { ['title'] = 'å…¶ä»–è´¹ç”¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouppost']['money_pay'] = { ['title'] = 'åº”ä»˜é‡‘é¢=(æ€»é‡‘é¢?-è¿”ç‚¹é‡‘é¢)*æŠ˜æ‰£+å…¶ä»–é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouppost']['money_get'] = { ['title'] = 'å·²ä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-æœªä»˜é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouppost']['money_left'] = { ['title'] = 'æœªä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-å·²ä»˜é‡‘é¢-åŽ»é›¶å¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouppost']['pay_percent'] = { ['title'] = 'ä»˜æ¬¾æ¯”ä¾‹=å·²ä»˜é™¤ä»¥ï¼ˆåº”ä»?-åŽ»é›¶å¤´ï¼‰' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['area'] = { ['title'] = 'é¢ç§¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['count'] = { ['title'] = 'æ•°é‡' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouppost']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['buyer'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouppost']['buyer_phone'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·ç”µè¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouppost']['buyer_address'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·åœ°å€' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergrouppost']['buyer_make'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·å¤–åŒ…è£…æ ‡ç¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergrouppost']['create_time'] = { ['title'] = 'ç”Ÿæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['project_addr'] = { ['title'] = 'project_addr' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '128' }	
  self.action['cgffinanceordergrouppost']['other_money_name'] = { ['title'] = 'å…¶ä»–è´¹ç”¨åç§°' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouppost']['other_money_note'] = { ['title'] = 'å…¶ä»–è´¹ç”¨å¤‡æ³¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['preferential'] = { ['title'] = 'preferential' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouppost']['balance_money'] = { ['title'] = 'ç»“ç®—é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouppost']['flag'] = { ['title'] = 'flag' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgffinanceordergrouppost']['status'] = { ['title'] = 'ä»˜æ¬¾çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergrouppost']['pay_time'] = { ['title'] = 'é¦–æ¬¡ä»˜æ¬¾æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['order_status'] = { ['title'] = 'ç»„è®¢å•çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouppost']['custime'] = { ['title'] = 'å®¢æœå—ç†æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['fintime'] = { ['title'] = 'è´¢åŠ¡å®¡æ ¸æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['start_time'] = { ['title'] = 'å®‰æŽ’ç”Ÿäº§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['duedong_time'] = { ['title'] = 'é¢„è®¡å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['due_date'] = { ['title'] = 'é¢„è®¡äº¤è´§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['finish_time'] = { ['title'] = 'å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['delivery_time'] = { ['title'] = 'å‡ºåº“æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouppost']['is_reminders'] = { ['title'] = 'æ˜¯å¦å·²å‚¬æ¬?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouppost']['agent'] = { ['title'] = 'ä»£ç†å•?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '50' }	
  self.action['cgffinanceordergrouppost']['delivery'] = { ['title'] = 'ç‰©æµä¿¡æ¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }
  self.action['cgffinanceordergrouppost']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgffinanceordergroupdetail'] = {} 	
	-------
	self.op['cgffinanceordergroupdetail'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgffinanceordergroupdetail()
		for a,b in pairs(top.action['cgffinanceordergroupdetail']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgffinanceordergroupdetail(newpostparam)
		
	end	
		
  self.action['cgffinanceordergroupdetail']['id'] = { ['title'] = '±àºÅ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupdetail']['customer_id'] = { ['title'] = 'é‚£å®¶å®¢æˆ·çš?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupdetail']['brand_id'] = { ['title'] = 'å“ç‰Œ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupdetail']['group_code'] = { ['title'] = 'å¤šä¸ªè®¢å•å¯ä»¥ç¼–è¾‘è®¢å•å¥?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergroupdetail']['plan_code'] = { ['title'] = 'æŽ’å•ç¼–å·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergroupdetail']['product_batch'] = { ['title'] = 'ç”Ÿäº§æ‰¹æ¬¡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupdetail']['money_sum'] = { ['title'] = 'money_sum' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupdetail']['rebates_money'] = { ['title'] = 'è¿”ç‚¹é‡‘é¢=æ€»é‡‘é¢?*è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupdetail']['rebates_ratio'] = { ['title'] = 'è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupdetail']['discount'] = { ['title'] = 'æŠ˜æ‰£' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['other_money'] = { ['title'] = 'å…¶ä»–è´¹ç”¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupdetail']['money_pay'] = { ['title'] = 'åº”ä»˜é‡‘é¢=(æ€»é‡‘é¢?-è¿”ç‚¹é‡‘é¢)*æŠ˜æ‰£+å…¶ä»–é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupdetail']['money_get'] = { ['title'] = 'å·²ä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-æœªä»˜é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupdetail']['money_left'] = { ['title'] = 'æœªä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-å·²ä»˜é‡‘é¢-åŽ»é›¶å¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupdetail']['pay_percent'] = { ['title'] = 'ä»˜æ¬¾æ¯”ä¾‹=å·²ä»˜é™¤ä»¥ï¼ˆåº”ä»?-åŽ»é›¶å¤´ï¼‰' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['area'] = { ['title'] = 'é¢ç§¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['count'] = { ['title'] = 'æ•°é‡' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupdetail']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['buyer'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupdetail']['buyer_phone'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·ç”µè¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupdetail']['buyer_address'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·åœ°å€' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergroupdetail']['buyer_make'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·å¤–åŒ…è£…æ ‡ç¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergroupdetail']['create_time'] = { ['title'] = 'ç”Ÿæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['project_addr'] = { ['title'] = 'project_addr' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '128' }	
  self.action['cgffinanceordergroupdetail']['other_money_name'] = { ['title'] = 'å…¶ä»–è´¹ç”¨åç§°' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupdetail']['other_money_note'] = { ['title'] = 'å…¶ä»–è´¹ç”¨å¤‡æ³¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['preferential'] = { ['title'] = 'preferential' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupdetail']['balance_money'] = { ['title'] = 'ç»“ç®—é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergroupdetail']['flag'] = { ['title'] = 'flag' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgffinanceordergroupdetail']['status'] = { ['title'] = 'ä»˜æ¬¾çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergroupdetail']['pay_time'] = { ['title'] = 'é¦–æ¬¡ä»˜æ¬¾æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['order_status'] = { ['title'] = 'ç»„è®¢å•çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergroupdetail']['custime'] = { ['title'] = 'å®¢æœå—ç†æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['fintime'] = { ['title'] = 'è´¢åŠ¡å®¡æ ¸æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['start_time'] = { ['title'] = 'å®‰æŽ’ç”Ÿäº§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['duedong_time'] = { ['title'] = 'é¢„è®¡å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['due_date'] = { ['title'] = 'é¢„è®¡äº¤è´§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['finish_time'] = { ['title'] = 'å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['delivery_time'] = { ['title'] = 'å‡ºåº“æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergroupdetail']['is_reminders'] = { ['title'] = 'æ˜¯å¦å·²å‚¬æ¬?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergroupdetail']['agent'] = { ['title'] = 'ä»£ç†å•?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '50' }	
  self.action['cgffinanceordergroupdetail']['delivery'] = { ['title'] = 'ç‰©æµä¿¡æ¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }
  self.action['cgffinanceordergroupdetail']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgffinanceordergrouplist'] = {} 	
	-------
	self.op['cgffinanceordergrouplist'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgffinanceordergrouplist()
		for a,b in pairs(top.action['cgffinanceordergrouplist']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgffinanceordergrouplist(newpostparam)
		
	end	
		
  self.action['cgffinanceordergrouplist']['id'] = { ['title'] = '±àºÅ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouplist']['customer_id'] = { ['title'] = 'é‚£å®¶å®¢æˆ·çš?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouplist']['brand_id'] = { ['title'] = 'å“ç‰Œ' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouplist']['group_code'] = { ['title'] = 'å¤šä¸ªè®¢å•å¯ä»¥ç¼–è¾‘è®¢å•å¥?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergrouplist']['plan_code'] = { ['title'] = 'æŽ’å•ç¼–å·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgffinanceordergrouplist']['product_batch'] = { ['title'] = 'ç”Ÿäº§æ‰¹æ¬¡' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouplist']['money_sum'] = { ['title'] = 'money_sum' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouplist']['rebates_money'] = { ['title'] = 'è¿”ç‚¹é‡‘é¢=æ€»é‡‘é¢?*è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouplist']['rebates_ratio'] = { ['title'] = 'è¿”ç‚¹æ¯?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouplist']['discount'] = { ['title'] = 'æŠ˜æ‰£' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['other_money'] = { ['title'] = 'å…¶ä»–è´¹ç”¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouplist']['money_pay'] = { ['title'] = 'åº”ä»˜é‡‘é¢=(æ€»é‡‘é¢?-è¿”ç‚¹é‡‘é¢)*æŠ˜æ‰£+å…¶ä»–é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouplist']['money_get'] = { ['title'] = 'å·²ä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-æœªä»˜é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouplist']['money_left'] = { ['title'] = 'æœªä»˜é‡‘é¢=åº”ä»˜é‡‘é¢-å·²ä»˜é‡‘é¢-åŽ»é›¶å¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouplist']['pay_percent'] = { ['title'] = 'ä»˜æ¬¾æ¯”ä¾‹=å·²ä»˜é™¤ä»¥ï¼ˆåº”ä»?-åŽ»é›¶å¤´ï¼‰' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['area'] = { ['title'] = 'é¢ç§¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['count'] = { ['title'] = 'æ•°é‡' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouplist']['note'] = { ['title'] = 'note' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['buyer'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouplist']['buyer_phone'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·ç”µè¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouplist']['buyer_address'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·åœ°å€' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergrouplist']['buyer_make'] = { ['title'] = 'ç»ˆç«¯ç”¨æˆ·å¤–åŒ…è£…æ ‡ç¤?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergrouplist']['create_time'] = { ['title'] = 'ç”Ÿæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['project_addr'] = { ['title'] = 'project_addr' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '128' }	
  self.action['cgffinanceordergrouplist']['other_money_name'] = { ['title'] = 'å…¶ä»–è´¹ç”¨åç§°' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouplist']['other_money_note'] = { ['title'] = 'å…¶ä»–è´¹ç”¨å¤‡æ³¨' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['preferential'] = { ['title'] = 'preferential' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouplist']['balance_money'] = { ['title'] = 'ç»“ç®—é‡‘é¢' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '12' }	
  self.action['cgffinanceordergrouplist']['flag'] = { ['title'] = 'flag' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '1' }	
  self.action['cgffinanceordergrouplist']['status'] = { ['title'] = 'ä»˜æ¬¾çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgffinanceordergrouplist']['pay_time'] = { ['title'] = 'é¦–æ¬¡ä»˜æ¬¾æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['order_status'] = { ['title'] = 'ç»„è®¢å•çŠ¶æ€?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgffinanceordergrouplist']['custime'] = { ['title'] = 'å®¢æœå—ç†æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['fintime'] = { ['title'] = 'è´¢åŠ¡å®¡æ ¸æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['start_time'] = { ['title'] = 'å®‰æŽ’ç”Ÿäº§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['duedong_time'] = { ['title'] = 'é¢„è®¡å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['due_date'] = { ['title'] = 'é¢„è®¡äº¤è´§æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['finish_time'] = { ['title'] = 'å®Œæˆæ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['delivery_time'] = { ['title'] = 'å‡ºåº“æ—¶é—´' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgffinanceordergrouplist']['is_reminders'] = { ['title'] = 'æ˜¯å¦å·²å‚¬æ¬?' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgffinanceordergrouplist']['agent'] = { ['title'] = 'ä»£ç†å•?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '50' }	
  self.action['cgffinanceordergrouplist']['delivery'] = { ['title'] = 'ç‰©æµä¿¡æ¯' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }
  self.action['cgffinanceordergrouplist']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
  
 
  	
  
	self.session = {}
	
end   





mcgffinanceordergroupmgr.check_fields_validate = function(self,key,postparam)
	local checkfunc = {}
	checkfunc['t'] = function(fm,value)
		return true
	end
	checkfunc['min'] = function(fm,value)
		if string.len(value) < tonumber(fm) then
			return false
		end
		return true
	end
	checkfunc['max'] = function(fm,value)
		if string.len(value) > tonumber(fm) then
			return false
		end
		return true
	end
	local format = self.action[key]
	for fkey,fvalue in pairs(postparam) do
		if format[fkey] ~= nil then
			for fmkey,fmvalue in pairs(format[fkey]) do
				if checkfunc[fmkey] ~= nil then
					if checkfunc[fmkey](fmvalue,fvalue) == false then
						return false,tostring(format[fkey]['title']).." "..tostring(fmkey).." "..tostring(fmvalue).." error"
					end
				end
			end
		end
	end
	return true,""
end 


 
mcgffinanceordergroupmgr.get_session = function(self,key)
	if key == nil then
		key = 'default'
	end
	return self.session[key]
end

mcgffinanceordergroupmgr.has_session = function(self,key)
	if key == nil then
		key = 'default'
	end
	return self.session[key] ~= nil
end
 
 
mcgffinanceordergroupmgr.add_session = function(self,key,ses)
	self.session[key] = ses
end


mcgffinanceordergroupmgr.add_ui = function(self,key,ui)
	self.uis[key] = ui
end




-- todo
mcgffinanceordergroupmgr.run = function(self,key,ui)
	if self.action[key] ~= nil and self.op[key] ~= nil then
		local tb = {}
		for k,v in pairs(self.action[key]) do
			if ui[k] ~= nil and type(ui[k]) == 'table' and ui[k].get_text then
				tb[k] = ui[k]:get_text()
			else
				print('run error',key,k)
			end
		end
		local success,msg = self:check_fields_validate(key,tb)
		if success then
			self.op[key](tb,ui)
		else
			ui.hostWindow:showMsg(msg)
		end		
	else
		print('run error self.action',key)
	end
end


------------------------------------------------------------------------------------


mcgffinanceordergroupmgr.get_net_page = function(self,netmethon,attrs)
	local top = self	
	local discuz = GmBase.net.get_instance()
	local methon = netmethon
	if methon ~= nil and discuz[methon] then
		print('mcgffinanceordergroupmgr.get_net_page ',methon)
		local tbname,callbackey,tb = discuz[netmethon](discuz)
		for k,v in pairs(attrs) do
			tb[k] = attrs[k]
		end
		discuz[netmethon](discuz,tb)
	else
		print('mcgffinanceordergroupmgr.get_net_page error ',methon)
	end		
end




mcgffinanceordergroupmgr.get_prev_page = function(self,ui,callback)
	if ui.page ~= nil and type(ui.page) == 'number' then
		local uiattrs = ui:GetAttrs()
		local attrs = {}
		for a,b in pairs(self.action['cgffinanceordergrouplist']) do
			if type(uiattrs[a]) ~= nil then
				attrs[a] = uiattrs[a]
			end
		end
		attrs.page = ui.page - 1		

		if attrs.page < 1 then
			attrs.page = 1
		end

		self:get_net_page(ui.netmethon,attrs)
	end
end


mcgffinanceordergroupmgr.get_next_page = function(self,ui,callback)
	if ui.page ~= nil and type(ui.page) == 'number' then
		local uiattrs = ui:GetAttrs()
		local attrs = {}
		for a,b in pairs(self.action['cgffinanceordergrouplist']) do
			if type(uiattrs[a]) ~= nil then
				attrs[a] = uiattrs[a]
			end
		end
		attrs.page = ui.page + 1
		self:get_net_page(ui.netmethon,attrs)
	end
end

------------------------------------------------------------------------------------



mcgffinanceordergroupmgr.init_table = function(self)
	--[[
	local tablefield = {}
	
	--number
	tablefield['id'] = { ["i"] = 11, }
    
	--number
	tablefield['customer_id'] = { ["i"] = 11, }
    
	--number
	tablefield['brand_id'] = { ["i"] = 11, }
    
	--string
	tablefield['group_code'] = { ["v"] = 32, }
    
	--string
	tablefield['plan_code'] = { ["v"] = 32, }
    
	--string
	tablefield['product_batch'] = { ["v"] = 64, }
    
	--string
	tablefield['money_sum'] = { ["v"] = 12, }
    
	--string
	tablefield['rebates_money'] = { ["v"] = 12, }
    
	--string
	tablefield['rebates_ratio'] = { ["v"] = 12, }
    
	--string
	tablefield['discount'] = { ["v"] = 20, }
    
	--string
	tablefield['other_money'] = { ["v"] = 12, }
    
	--string
	tablefield['money_pay'] = { ["v"] = 12, }
    
	--string
	tablefield['money_get'] = { ["v"] = 12, }
    
	--string
	tablefield['money_left'] = { ["v"] = 12, }
    
	--string
	tablefield['pay_percent'] = { ["v"] = 20, }
    
	--string
	tablefield['area'] = { ["v"] = 20, }
    
	--number
	tablefield['count'] = { ["i"] = 11, }
    
	--string
	tablefield['note'] = { ["v"] = 20, }
    
	--string
	tablefield['buyer'] = { ["v"] = 64, }
    
	--string
	tablefield['buyer_phone'] = { ["v"] = 64, }
    
	--string
	tablefield['buyer_address'] = { ["v"] = 255, }
    
	--string
	tablefield['buyer_make'] = { ["v"] = 255, }
    
	--string
	tablefield['create_time'] = { ["v"] = 20, }
    
	--string
	tablefield['project_addr'] = { ["v"] = 128, }
    
	--string
	tablefield['other_money_name'] = { ["v"] = 64, }
    
	--string
	tablefield['other_money_note'] = { ["v"] = 20, }
    
	--string
	tablefield['preferential'] = { ["v"] = 12, }
    
	--string
	tablefield['balance_money'] = { ["v"] = 12, }
    
	--number
	tablefield['flag'] = { ["i"] = 1, }
    
	--string
	tablefield['status'] = { ["v"] = 255, }
    
	--string
	tablefield['pay_time'] = { ["v"] = 20, }
    
	--string
	tablefield['order_status'] = { ["v"] = 64, }
    
	--string
	tablefield['custime'] = { ["v"] = 20, }
    
	--string
	tablefield['fintime'] = { ["v"] = 20, }
    
	--string
	tablefield['start_time'] = { ["v"] = 20, }
    
	--string
	tablefield['duedong_time'] = { ["v"] = 20, }
    
	--string
	tablefield['due_date'] = { ["v"] = 20, }
    
	--string
	tablefield['finish_time'] = { ["v"] = 20, }
    
	--string
	tablefield['delivery_time'] = { ["v"] = 20, }
    
	--number
	tablefield['is_reminders'] = { ["i"] = 11, }
    
	--string
	tablefield['agent'] = { ["v"] = 50, }
    
	--string
	tablefield['delivery'] = { ["v"] = 64, }
    
	self:create_table( self.tablename, tablefield)
	]]
	self:initTableStruct()
end


	